/* ===========================
   التنسيقات العامة
=========================== */
body {
  font-family: "Tahoma", Arial, sans-serif;
  background: #fafafa;
  color: #333;
  margin: 0;
  line-height: 1.6;
}

/* ===========================
   الهيدر
=========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 2px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  height: 10vh;
  padding: 10px 20px;
}

.logo {
  height: 100%;
}

.wazen-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
}

#lang-toggle {
  background: #09737E;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

#lang-toggle:hover {
  background: #0a575f;
}

/* ===========================
   أزرار الأقسام
=========================== */
.sections-nav {
  margin-top: 15px;
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;      /* يمنع النزول لسطر ثاني */
  overflow-x: auto;       /* تفعيل السحب الأفقي */
  overflow-y: hidden;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch; /* سحب ناعم على الموبايل */
  padding: 5px 10px;
  max-width: 100%;          /* مهم */
  box-sizing: border-box;
}

.sections-nav::-webkit-scrollbar {
  height: 6px;
}

.sections-nav::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.sections-nav button {
  background: #F9B149;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;   /* ما ينضغط الزر */
}

.sections-nav button:hover {
  background: #e49221;
}

/* ===========================
   الأقسام الرئيسية
=========================== */
.menu-section {
  margin: 30px auto;
  max-width: 1200px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===========================
   العنوان
=========================== */
h2 {
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 15px;
  color: #34495e;
  font-size: 2rem;
}

/* ===========================
   الليبل
=========================== */
.section-label {
  margin: 10px 0 20px;
  padding: 10px 14px;
  background: #09737E; /* برتقالي فاتح */
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
}
.section-label::before {
  content: "🏷 ";
  margin-right: 4px;
  font-size: 1.2rem;
}

/* ===========================
   ملاحظة القسم
=========================== */
.section-note {
  margin: 10px 0 20px;
  padding: 10px 14px;
  background: #f3f8f9;
  border-inline-start: 4px solid #09737E;
  border-radius: 6px;
  font-size: 1.15rem;
  color: #444;
}

/* ===========================
   الغلاف القابل للتمرير
=========================== */
.scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===========================
   جدول الأسعار
=========================== */
.prices-header, .item-row {
  display: grid;
  grid-template-columns: 10% 3fr repeat(3, 1fr); /* عمود للصورة + الاسم + 3 أعمدة أسعار */
  gap: 10px;
  align-items: center;
  min-width: 1200px; /* يمنع تكسير الجدول على شاشات صغيرة */
  direction: inherit;
}

.item-image img {
  width: 100%;      /* 100% من عرض العمود */
  aspect-ratio: 1; /* يضمن مربع كامل */
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  display: block;      /* مهم لتجنب مشاكل inline */
}

.item-image img.placeholder {
  opacity: 0.75; /* 75% شفافية */
}

.item-name, .item-title {
  font-weight: 700;
  font-size: 1.3rem;
  text-align: inherit;
}

.item-desc {
  font-weight: 400;
  font-size: 1.15rem;
  color: #666;
  text-align: inherit;
  white-space: pre-wrap;
}

.item-price, .item-price-header {
  font-weight: 600;
  font-size: 1.25rem;
  text-align: center;
}

/* السماح للـ tooltip بالظهور */
.prices-header, .item-price-header {
  position: relative;
  overflow: visible;
}

/* ===========================
   tooltip لوجبة وازن
=========================== */
.tooltip-star {
  margin-left: 4px;
  color: #09737E;
  cursor: help;
  position: relative;
  font-size: 0.9rem;
  margin-inline-start: 4px;  /* المسافة بين الكلمة والنجمة */
}

.tooltip-star .tooltip-text {
  position: absolute;
  top: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: pre-line;
  text-align: start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 50;
  pointer-events: none;
  min-width: 250px;
  box-sizing: border-box;
}

.tooltip-star:hover .tooltip-text,
.tooltip-star:focus .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* رؤوس الأعمدة */
.prices-header {
  border-bottom: 2px solid #ccc;
  padding-bottom: 6px;
}

/* ألوان الصفوف وتأثير hover */
.item-row:nth-child(even) {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 5px 0;
}

.item-row:nth-child(odd) {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 5px 0;
}

.item-row:hover {
  background-color: #dff0ff;
}

/* للتأكد على الهواتف */
@media (max-width: 768px) {
  .wazen-tooltip {
    font-size: 1.25rem; /* حجم ثابت، نفس حجم باقي العناوين */
    display: block;  
  }
}